package com.weishaoying.mongo;

import com.weishaoying.mongo.model.MultiMongoConfigBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

@SpringBootApplication(exclude = MongoAutoConfiguration.class)//排除自动配置
@EnableConfigurationProperties(value = MultiMongoConfigBean.class)
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        System.out.println("=================== Application 启动成功");
    }
}
